#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>

#define QueDateType int

struct Queuenode
{
	QueDateType data;
	struct Queuenode* next;
};

typedef struct Queue
{
	struct Queuenode* head;
	struct Queuenode* tail;
	int size;
}Queue;

void QueueInit(Queue* pq);
void QueueDestory(Queue* pq);

void QueuePush(Queue* pq, QueDateType x);
void QueuePop(Queue* pq);

QueDateType QueueFront(Queue* pq);
QueDateType QueueBack(Queue* pq);
int QueueSize(Queue* pq);

bool QueueEmpty(Queue* pq);

Queue* QueueFind(Queue* pq, QueDateType x);

void QueuePrint(Queue* pq);